package com.holly.unit.gen.api.config;

/**
 * 类描述: 代码生成配置类
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/1/14 16:34
 */
public class GenCodeCfg {

    //数据库类型
    public static String dbType = "";
    // 数据库驱动
    public static String diverName="";

    // 数据库URL
    public static String url="";

    // 数据库连接账号
    public static String username="";

    // 数据库连接密码
    public static String password = "";

    // 数据库名称
    public static String dbName = "";

    //项目路径
    public static String projectPath="";

    //业务包路径
    public static String bussiPackage="";

    // src路径
    public static String srcPackage="";

    //web路径
    public static String webPackage="";

    // 代码生成器模板文件路径
    public static String templatePath="";

    // 数据库字段是否安装驼峰写法转换
    public static boolean isHump = true;

    // 自定义主键
    public static String dbTableId = "";

    // 默认前4个字段必须输入
    public static String pageFieldReqNum = "";

    // 默认生成3个查询字段
    public static String pageQueryNum = "";

    // 自定义页面过滤字段
    public static String pageFilterFields = "";

    // 默认一行显示几个字段：参数
    public static String fieldInRowNum = "";

    public static String getDbType() {
        return dbType;
    }

    public static void setDbType(String dbType) {
        GenCodeCfg.dbType = dbType;
    }

    public static String getDiverName() {
        return diverName;
    }

    public static void setDiverName(String diverName) {
        GenCodeCfg.diverName = diverName;
    }

    public static String getUrl() {
        return url;
    }

    public static void setUrl(String url) {
        GenCodeCfg.url = url;
    }

    public static String getUsername() {
        return username;
    }

    public static void setUsername(String username) {
        GenCodeCfg.username = username;
    }

    public static String getPassword() {
        return password;
    }

    public static void setPassword(String password) {
        GenCodeCfg.password = password;
    }

    public static String getDbName() {
        return dbName;
    }

    public static void setDbName(String dbName) {
        GenCodeCfg.dbName = dbName;
    }

    public static String getProjectPath() {
        return projectPath;
    }

    public static void setProjectPath(String projectPath) {
        GenCodeCfg.projectPath = projectPath;
    }

    public static String getBussiPackage() {
        return bussiPackage;
    }

    public static void setBussiPackage(String bussiPackage) {
        GenCodeCfg.bussiPackage = bussiPackage;
    }

    public static String getSrcPackage() {
        return srcPackage;
    }

    public static void setSrcPackage(String srcPackage) {
        GenCodeCfg.srcPackage = srcPackage;
    }

    public static String getWebPackage() {
        return webPackage;
    }

    public static void setWebPackage(String webPackage) {
        GenCodeCfg.webPackage = webPackage;
    }

    public static String getTemplatePath() {
        return templatePath;
    }

    public static void setTemplatePath(String templatePath) {
        GenCodeCfg.templatePath = templatePath;
    }

    public static boolean isIsHump() {
        return isHump;
    }

    public static void setIsHump(boolean isHump) {
        GenCodeCfg.isHump = isHump;
    }

    public static String getDbTableId() {
        return dbTableId;
    }

    public static void setDbTableId(String dbTableId) {
        GenCodeCfg.dbTableId = dbTableId;
    }

    public static String getPageFieldReqNum() {
        return pageFieldReqNum;
    }

    public static void setPageFieldReqNum(String pageFieldReqNum) {
        GenCodeCfg.pageFieldReqNum = pageFieldReqNum;
    }

    public static String getPageQueryNum() {
        return pageQueryNum;
    }

    public static void setPageQueryNum(String pageQueryNum) {
        GenCodeCfg.pageQueryNum = pageQueryNum;
    }

    public static String getPageFilterFields() {
        return pageFilterFields;
    }

    public static void setPageFilterFields(String pageFilterFields) {
        GenCodeCfg.pageFilterFields = pageFilterFields;
    }

    public static String getFieldInRowNum() {
        return fieldInRowNum;
    }

    public static void setFieldInRowNum(String fieldInRowNum) {
        GenCodeCfg.fieldInRowNum = fieldInRowNum;
    }

}
